tools: Fix time offset when localtime=0
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:15:31 +0000 (08:15 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:15:31 +0000 (08:15 +0100)
commit221bac1943483d40500379d3b049552fd4314e66
tree0b81d20a6148d69b987cd77bd1ddff5d051a3168
parentcf928043f97066944de78f214414a2493495e4bd
tools: Fix time offset when localtime=0

localtime can be stored in vm config as a string, resulting in
incorrect calculation of rtc_timeoffset.  Cast localtime to int
to ensure rtc_timeoffset is calculated properly.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/image.py